
window.addEventListener('DOMContentLoaded',()=>{
let btn1=document.querySelector('.one');
let div_one=document.querySelector('.div_one');
let btn2=document.querySelector('.two');
let div_two=document.querySelector('.div_two');
let wd=document.querySelector('#wd');
const bj=document.querySelector('#bj');
const list=document.querySelector('#list');
const flag2=true;
btn1.addEventListener('click',function(){   
        div_one.classList.toggle('div_one');
           
});
btn2.addEventListener('click',function(){
    div_two.classList.toggle('div_two');

})
})
console.log(btn1);
console.log(wd);
console.log(list);
// console.log(list.children.length);
// for(let i=0;i<3;i++){
//    list.children[i].addEventListener('click',()=>{
//     for(let i=0;i<3;i++){
//         list.children[i].style.display='none';
//     }
//    })
// this.children[i].style.display='block';
// }
